home *** CD-ROM | disk | FTP | other *** search
- TITLE: Numbering Paragraphs in Tables
- PRODUCT: Ami Pro 2.0
- DATE: 19-Feb-1992
-
- PROBLEM:
-
- Using a numbered list paragraph style does not sequentially number paragraphs
- typed in multiple table cells. Each paragraph starts with number 1. Can
- paragraphs automatically be numbered in tables?
-
- SOLUTION:
-
- Paragraphs typed in separate table cells can be automatically numbered by
- inserting a sequence power field. You will need to insert the power field in
- each cell, but an Ami Pro macro can be written to automate this procedure. In
- Ami Pro Untitled, type the following to create the macro to insert the
- sequence power field:
-
- FUNCTION CELL1()
- FieldAdd("Seq cellone+1 %N1" )
- END FUNCTION
-
- NOTE: The %N1 formatting option sets the numbering style as 1, 2, 3,.... You
- can also use any of the following formatting options: %N2 = I, II, III..., %N3
- = i, ii, iii,..., %N4 = A, B, C,..., and %N5 = a, b, c,....
-
- Choose File / Save and specify "Ami Pro Macro" for the File Type option.
- Specify CELL1 as the file name and choose OK.
-
- You can create a special column for the numbers in a table. Make the column
- just wide enough to accommodate the widest number and the amount of space you
- want between the numbers and the paragraph text. Type the paragraph text in
- the next column to the right. Playback the macro CELL1 each time you need a
- paragraph number (if you use a mouse, you can assign CELL1 to a custom icon
- and place it on the SmartIcon bar). See Figure 1 for an example.
-
- ⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
- ≥ Table ≥
- √ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¥
- ≥1 Word wrapped paragraph ≥
- √ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¥
- ≥2 Word wrapped paragraph ≥
- √ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¥
- ≥3 Word wrapped paragraph ≥
- ¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
- Figure 1
-
- The power field numbers will be calculated from left to right. That means if
- the power field is inserted horizontally and vertically, the numbers will be
- sequenced in the first row, then the second row etc. See Figure 2 for an
- example.
-
- ⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
- ≥ Table ≥
- √ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¬ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¥
- ≥1 Word wrapped ≥2 Word wrapped ≥
- ≥ paragraph ≥ paragraph ≥
- √ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ≈ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¥
- ≥3 Word wrapped ≥4 Word wrapped ≥
- ≥ paragraph ≥ paragraph ≥
- ¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
- Figure 2
-
- If you want to restart paragraph numbering in a table, you will need to create
- a second macro which inserts another sequence power field. Create as many of
- these macros as you will need to restart numbering in a table. Use the same
- macro commands as above, but specify a different name for the sequence power
- field (Celltwo instead of Cellone, for example) and give each macro a
- different name. NOTE: Use text only for the sequence names. For example, use
- Cellone and Celltwo instead of Cell1 and Cell2. Playback the second macro
- where you need to restart numbering. See Figure 3 for an example. The macro
- that inserts the sequence power field Cellone is used in the first column and
- the macro that inserts the sequence power field Celltwo is used in the third
- column. NOTE: You will also need more than one sequence power field if you
- are numbering paragraphs in multiple tables in a file.
-
- ⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
- ≥ Table ≥
- √ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¬ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¥
- ≥1 Word wrapped ≥1 Word wrapped ≥
- ≥ paragraph ≥ paragraph ≥
- √ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ≈ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¥
- ≥2 Word wrapped ≥2 Word wrapped ≥
- ≥ paragraph ≥ paragraph ≥
- ¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
- Figure 3
-